﻿using CodeGenerator.ProjectBL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CodeGenerator.Models
{
    public class ProjectModel
    {
        public int ProjectId { get; set; }
        public String ProjectName { get; set; }

        public ProjectModel() { }

        public ProjectModel(ProjectDto dto)
        {
            this.ProjectId = dto.Id;
            this.ProjectName = dto.Name;
        }

        public CodeGenerator.Models.ProjectModel ToProjectModel()
        {
            return new ProjectModel
            {
                ProjectId = this.ProjectId,
                ProjectName = this.ProjectName
            };
        }

    }
}
